#pragma once
#include "MultiMedia.h"


class Book : public MultiMedia
{
private:
	int pages;
public:
	Book(void);
	Book( string title, string author, string genre, int year, int pages );

	~Book(void);


	int GetPages() { return this->pages; }


	void Print( ostream &out );
	static bool sort_pred( Book one, Book other );

	friend ostream &operator<<( ostream &out, const Book &book );
	friend istream &operator>>( istream &in, Book &book );

	friend bool operator==( const Book &one, const Book &other );
	friend bool operator!=( const Book &one, const Book &other );
	friend bool operator<( const Book &one, const Book &other );


};

